 <?php
    use yii\widgets\ActiveForm; 
    use yii\helpers\Html;
   /*  $form = ActiveForm::begin([
         'method'=>'get',
     ]); */
    
 echo   \app\components\BaseViewList::beginForm('','get');
    
    
    ?> 
<ul class="topselect"><?php
 

$attr=$this->context->getselectAttr();

//print_r($attr);exit; 
    foreach ($attr as $key=>$vo){
        $vo['default']=  isset($vo['default'])?$vo['default']:'';
        
        ?><li>
            <span class="labT"><?= $vo['title'] ?></span><div class="input">
            <?php 
            echo app\components\BaseViewList::htmlinput($vo['inputtype'],
                    isset($_GET[$key])?$_GET[$key]:$vo['default'],
                    $key,
                    isset($vo['items'])?$vo['items']:[]
                    );
            ?></div>
</li>
            
            <?php
    } 
?></ul>
<input name="submit" value="true" type="hidden"/>
        <?php
        
      echo  Html::submitButton('提交');
   echo '</form>';
 ?>
